package com.lzs.chuku.controller.other;

import com.lzs.chuku.service.other.DictService;
import com.lzs.util.R;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @author 小刘先生
 * @date 2020/12/9 20:38
 */
@RestController
@RequestMapping("/chuku/dict")
public class DictController {
    @Autowired
    private DictService dictService;
    @GetMapping("findDictByCode/{id}")
    @ApiOperation("根据编码查询状态")
    public R findDictByCode(@PathVariable("id") Long id){
        return dictService.findDictByCode(id);
    }
}
